# This file is part of BlackArch Linux ( https://www.blackarch.org/ ).
# See COPYING for license details.

pkgname=bluebugger
pkgver=0.1
pkgrel=4
pkgdesc='An implementation of the bluebug technique which was discovered by Martin Herfurt.'
groups=('blackarch' 'blackarch-bluetooth')
url='http://packetstormsecurity.com/files/54024/bluebugger-0.1.tar.gz.html'
license=('GPL')
depends=('bluez-libs')
arch=('x86_64' 'aarch64')
source=("https://dl.packetstormsecurity.net/wireless/$pkgname-$pkgver.tar.gz")
sha512sums=('776464512c7ea38c79c62bd27753906b9b01fb668d7f5be1f872421e8f791f5e86a1fe8d1645467a8a3f3132dd2a879194b767e843f09e5e71d5fe60e25f46b9')

build() {
  cd "$pkgname-$pkgver"

  make
}

package(){
  cd "$pkgname-$pkgver"

  install -Dm 755 $pkgname "$pkgdir/usr/bin/$pkgname"
  install -Dm 644 -t "$pkgdir/usr/share/doc/$pkgname/" README
}

